<template>
    <div class="newsInfo-container">
        <h3 class="title">123</h3>
        <div class="minTitle">
            <span>123</span>
            <span>123</span>
        </div>
        <div class="content">123</div>
        <opinion></opinion>
    </div>
</template>
<script>
import opinion from '../opinion/opn.vue'
export default {
    data(){
        return {
            //这里是获取参数id
            id:this.$route.params.id
        }
    },
    created(){
        this.getNewsInfo()
    },
    methods:{
        getNewsInfo(){
            this.$http.get('../../mess.json').then((res)=>{
                console.log(res)
            })
        }
    },
    components:{
        opinion
    }
}
</script>
<style lang='less' scoped>
    .newsInfo-container{
        .title{
            text-align: center;
        }
        .minTitle{
            display: flex;
            justify-content: space-between;
        }
    }
</style>


